<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Pixelpost Documentation - Alternative Languages</title>
<link href="style.css" rel="stylesheet" />
</head>

<body>
<h1>Pixelpost 1.6</h1>
<hr />
Ramin Mehran, Connie Mueller-Goedecke, Robert Prouse, Will Duncan, Joseph Spurling, Piotr &quot;GeoS&quot; Galas, Dennis Mooibroek<br /><br />
Version 1.1 to Version 1.3: Linus &lt;<a href="http://www.shapestyle.se">http://www.shapestyle.se</a>&gt;<br />
<p>Contact: thecrew (at) pixelpost (dot) org</p>
<p>Copyright &copy; 2007 Pixelpost.org &lt;<a href="http://www.pixelpost.org">http://www.pixelpost.org</a>&gt;</p>
<p>
  Pixelpost wiki: <a href="http://wiki.pixelpost.org/">http://wiki.pixelpost.org/</a><br />
  Pixelpost forum: <a href="http://forum.pixelpost.org">http://forum.pixelpost.org</a></p>
<p>License: <a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a></p>
<hr />
<p>You can set a default language and an alternative language in the admin panel. The default language is the behavior of the old  version (1.5 and earlier) of Pixelpost. It uses the default templates (e.g. image_template.html). If you select an alternative language and you want to switch back and forth you need a set of new template files for this language. So the best thing to do is make a copy of the old template (for example the about_template.html), translate everything you want to the alternative language in that template and rename the template as follows:</p>
  <p>Each language in Pixelpost has is own abbreviation as shown below:
    <blockquote>
  <table>
	<tr><td>dutch</td><td>NL</td></tr>
	<tr><td>english</td><td>EN</td></tr>
	<tr><td>french</td><td>FR</td></tr>
	<tr><td>german</td><td>DE</td></tr>
	<tr><td>italian</td><td>IT</td></tr>
	<tr><td>norwegian</td><td>NO</td></tr>
	<tr><td>persian</td><td>FA</td></tr>
	<tr><td>polish</td><td>PL</td></tr>
	<tr><td>portuguese</td><td>PT</td></tr>
	<tr><td>simplified chinese</td><td>CN</td></tr>
    <tr><td>spanish</td><td>ES</td></tr>
	<tr><td>swedish</td><td>SE</td></tr>
    <tr><td>japanese</td><td>JP</td></tr>
</table>
<p>So let's say, for the sake of argument, I have my alternative language set to Dutch and the default to English. I have a default template with all items in English and it uses the English language file. Now I want to switch between English and Dutch. So I copy the default template files, translate everything the users see from English in Dutch (like the about page) and rename the template following the scheme below:</p>
<p>image_template.html =&gt; image_nl_template.html</p>
<p>So right before &quot;_template.html&quot; I add a &quot;_xx&quot; where xx is the abbreviation of the alternative language. Do this for all template files.</p>
<p>I've included some tags to make switching easier:</p>
<p>&lt;ALTERNATIVE_LANGUAGE&gt;<br />
  Gives a full URL to switch to the alternative language set from the adminpanel (warning: requires alternative language templates). Best part of this is when you switch to the alternative language a link will be displayed for the default language and vice versa.</p>
<p>&lt;LANGUAGE=xx&gt;<br />
  Gives a full URL to switch to any language (provided there are templates) The xx part is the language abbreviation mentioned earlier. (This is a fixed link. If you switch to this language this link will not change)</p>
<p>So switching to another language will use new templates but will also include the correct language file and for the alternative language the alternative tags, categories, titles, image description will be used.</p>
</body>
</html>
